import axios from './axios'

export const home = () => axios({ method: 'get', url: 'http://www.codeboy.com:9999/data/product/', })
export const productList = () => axios({ method: 'get', url: 'http://www.codeboy.com:9999/data/product/list.php', })
export const login = params => axios({ method: 'get', url: 'http://www.codeboy.com:9999/data/user/login.php', params })


export const getUserById = params => axios({ method: 'get', url: '/user/getUserById', params })
export const getUser = data => axios({ method: 'post', url: '/user/getUser', data })

// console.log(axios)